import amesu from "../model/bot/amesu";
import func from "../model/func";
import { MsgAction, Tpl_teamInfo } from "../shared/master/MsgAction";
import { style_default } from "../style/default";

export default function(data:MsgAction){
    let d = data.data as Tpl_teamInfo;
    let style = new style_default();
    func.roundNumbers(d);
    style.setTitle('我的小队')
    style.addLine(`${d.name}`)
    style.addLine(`Lv${d.leve.num}(${d.leve.num}/${d.leve.max})`)
    style.addLine(`成员:${d.member_cont}/∞`)
    style.addLine(`在线:${d.online_cont}人`)
    style.addLine(`职位:${d.leve?"队长":"成员"}`)
    style.addLine(`贡献:${d.contribute}`)
    style.help('小队帮助')
    amesu.sendText(data.tolocation,style.end());
}